package zl.ordermanager.po;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * Tpurchaseorder entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tpurchaseorder", catalog = "ordermanager", uniqueConstraints = @UniqueConstraint(columnNames = "orderNo"))
public class Tpurchaseorder implements java.io.Serializable {

	// Fields

	private Integer id;

	private String orderNo;

	private String orderDate;

	private String company;

	private String orderType;

	private String ai;

	private String money;

	private String invoice;

	// Constructors

	/** default constructor */
	public Tpurchaseorder() {
	}

	/** minimal constructor */
	public Tpurchaseorder(String orderNo, String orderDate, String company, String orderType) {
		this.orderNo = orderNo;
		this.orderDate = orderDate;
		this.company = company;
		this.orderType = orderType;
	}

	/** full constructor */
	public Tpurchaseorder(String orderNo, String orderDate, String company, String orderType, String ai, String money,
			String invoice) {
		this.orderNo = orderNo;
		this.orderDate = orderDate;
		this.company = company;
		this.orderType = orderType;
		this.ai = ai;
		this.money = money;
		this.invoice = invoice;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "orderNo", unique = true, nullable = false, length = 100)
	public String getOrderNo() {
		return this.orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	@Column(name = "orderDate", nullable = false, length = 24)
	public String getOrderDate() {
		return this.orderDate;
	}

	public void setOrderDate(String orderDate) {
		this.orderDate = orderDate;
	}

	@Column(name = "company", nullable = false, length = 200)
	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	@Column(name = "orderType", nullable = false, length = 45)
	public String getOrderType() {
		return this.orderType;
	}

	public void setOrderType(String orderType) {
		this.orderType = orderType;
	}

	@Column(name = "ai", length = 45)
	public String getAi() {
		return this.ai;
	}

	public void setAi(String ai) {
		this.ai = ai;
	}

	@Column(name = "money", length = 10)
	public String getMoney() {
		return this.money;
	}

	public void setMoney(String money) {
		this.money = money;
	}

	@Column(name = "invoice", length = 10)
	public String getInvoice() {
		return invoice;
	}

	public void setInvoice(String invoice) {
		this.invoice = invoice;
	}

}